
package com.microweb.toastmaster.dao;

import java.util.List;

import com.microweb.toastmaster.dao.Dao;
import com.microweb.toastmaster.model.TMProject;

public interface TMProjectDao extends Dao {

    /**
     * Retrieves all of the tMProjects
     */
    public List getTMProjects(TMProject tMProject);

    /**
     * Gets tMProject's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the tMProject's id
     * @return tMProject populated tMProject object
     */
    public TMProject getTMProject(final Long id);

    /**
     * Saves a tMProject's information
     * @param tMProject the object to be saved
     */    
    public void saveTMProject(TMProject tMProject);

    /**
     * Removes a tMProject from the database by id
     * @param id the tMProject's id
     */
    public void removeTMProject(final Long id);
}

